package l2ft.gameserver.network.l2.c2s;

import l2ft.gameserver.model.Player;


public class RequestProcureCrop extends L2GameClientPacket
{
	// format: cddb
	
	@Override
	protected void readImpl()
	{
		readD();
		int _count = readD();
		if(_count * 16 > _buf.remaining() || _count > Short.MAX_VALUE || _count < 1)
		{
			_count = 0;
			return;
		}
		
		for(int i = 0; i < _count; i++)
		{
			readD(); // service
			readD();
			long asd = readQ();
			if(asd < 1)
			{
				_count = 0;
				return;
			}
		}
	}

	@Override
	protected void runImpl()
	{
		Player activeChar = getClient().getActiveChar();
		if(activeChar == null)
			return;

		activeChar.sendActionFailed();
	}
}